Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring multichain sidemenu to a selector component #692

Merged
merged 5 commits into from
Jun 15, 2023

Conversation

jaegerfe
Copy link
Collaborator

@jaegerfe jaegerfe commented May 4, 2023

Fixes #706

Fixes #705

Description

Improving the UX of multi chain functionality by moving it from the side menu to a menu button and included a tag on the chain logo to indicate when the User is under a testnet environment.

Also, fixed a bug regarding authentication where the system was keeping the account connected when changing the network.

image
image
image

Test scenarios

  • Selected a testnet chain and checked if the testnet tag appears.
  • Changed from one chain to another and checked if the environment changes.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have cleaned up the code in the areas my change touches
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings
  • I have removed any unnecessary console messages

@jaegerfe jaegerfe added the ✨ Enhancement Improvements on existing features label May 4, 2023
@jaegerfe jaegerfe self-assigned this May 4, 2023
@netlify
Copy link

netlify bot commented May 4, 2023

Deploy Preview for obe-testnet ready!

Name Link
🔨 Latest commit 2665ba9
🔍 Latest deploy log https://app.netlify.com/sites/obe-testnet/deploys/648b9cae8a90530008ad917f
😎 Deploy Preview https://deploy-preview-692--obe-testnet.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 4, 2023

Deploy Preview for obe-staging ready!

Name Link
🔨 Latest commit 2665ba9
🔍 Latest deploy log https://app.netlify.com/sites/obe-staging/deploys/648b9cae319b10000810f381
😎 Deploy Preview https://deploy-preview-692--obe-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 4, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2665ba9
Status: ✅  Deploy successful!
Preview URL: https://23634763.open-block-explorer.pages.dev
Branch Preview URL: https://new-multichain-selector.open-block-explorer.pages.dev

View logs

Copy link
Contributor

@karynemayer karynemayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we include changing the url according to the selected chain?
This would enable link sharing to the precise transaction/account in the specific chain

for example, for telos we should add ?network=telos, based on the chain name we have on index.ts for each chain

@jaegerfe
Copy link
Collaborator Author

jaegerfe commented May 30, 2023

Could we include changing the url according to the selected chain? This would enable link sharing to the precise transaction/account in the specific chain

for example, for telos we should add ?network=telos, based on the chain name we have on index.ts for each chain

I will do it in a different PR, opened #709 to keep track on this. This one will only change the side menu for the dropdown and update the ENV var name for it. Also, fixed some bugs on authentication regarding when change from one chain to another.

@jaegerfe jaegerfe requested a review from karynemayer May 30, 2023 18:42
@karynemayer karynemayer merged commit 0b1dd5c into develop Jun 15, 2023
@karynemayer karynemayer deleted the new_multichain_selector branch June 15, 2023 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement Improvements on existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants